<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<input type="button" value="切换" @click="toggle">
			<p v-if="isshow">哈哈哈</p><!-- 全部隐藏 -->
			<p v-show="isshow">嘎嘎嘎嘎</p><!-- 只是display -->
			<h2 v-if="wd>=30">热死了</h2>
		</div>
		<script>
			var app =  new Vue({
				el:"#app",
				data:{
					isshow:false,
					wd:30
				},
				methods:{
					toggle:function(){
						this.isshow = !this.isshow
					}
				}
			})
		</script>
	</body>
</html>
